﻿using System.ComponentModel.DataAnnotations;
using GamFi.API.Domain.Common;

namespace GamFi.API.Domain.Entities;

public class Transaction: BaseEntity
{
    /// <summary>
    /// Сумма
    /// </summary>
    public double Amount { get; set; }
    
    /// <summary>
    /// Дата покупки
    /// </summary>
    public DateTime Date { get; set; }
    
    /// <summary>
    /// ИД кошелька
    /// </summary>
    public Guid WalletId { get; set; }

    /// <summary>
    /// Кошелёк
    /// </summary>
    public Wallet Wallet { get; set; } = default!;
    
    /// <summary>
    /// Операция
    /// </summary>
    [MaxLength(20)]
    public string Operation { get; set; } = default!;
}